﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PeisongWeb.admin.controls
{
    public partial class top : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lbl_UserName.InnerText = logic.sysAdmin.getById(logic.sysAdmin.AdminID).Username;
                int totalCount=logic.order.countTodayDynamicOrder();
                lblImportantMsg.Text = string.Format("<font color='red'>今天有 {0} 张提前订单未处理</font>",totalCount);
            }
        }

        protected void lbt_logout_Click(object sender, EventArgs e)
        {
            logic.sysAdmin.logout();
            Response.Redirect("admin/login.aspx");
        }
    }
}